//
//  SwipeView.h
//  SwipeViewDemo
//
//  Created by 如佳 陈 on 15/8/12.
//  Copyright (c) 2015年 crj. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RJSwipeView;
@protocol RJSwipeViewDelegate <NSObject>

@optional

- (void)swipeView:(RJSwipeView*)swipeView didPresentViewController:(UIViewController*)viewController firstPresented:(BOOL)firstPresented;

@end

@protocol RJSwipeViewDataSource <NSObject>

@end

IB_DESIGNABLE
@interface RJSwipeView : UIView

//@property (nonatomic, assign) IBInspectable NSInteger pageCount;
@property (nonatomic, retain) IBInspectable UIColor *topBackgroundColor;
@property (nonatomic, assign) IBInspectable CGFloat topHeight;
@property (nonatomic, retain) UIColor *tagBarTextColor;
@property (nonatomic, retain) UIColor *tagBarTintColor;

@property (nonatomic, retain) IBOutlet id<RJSwipeViewDelegate> delegate;

@property (nonatomic, retain) UIView *titlesView;
@property (nonatomic, retain) UIScrollView *scrollView;
@property (nonatomic, retain) NSArray *titles;
@property (nonatomic, retain) NSArray *viewControllers;
@property (nonatomic, retain) UIView *indicator;

@property (nonatomic, assign) NSUInteger selectedIndex;

@end
